if (isDraggable) {
this._draggable = DND.makeDraggable(this, {timeoutThreshold: 200});
-
- this._draggable.connect('drag-begin', this._onDragBegin.bind(this));
- this._draggable.connect('drag-cancelled', this._onDragCancelled.bind(this));
- this._draggable.connect('drag-end', this._onDragEnd.bind(this));
+ this._draggable.connectObject(
+ 'drag-begin', this._onDragBegin.bind(this),
+ 'drag-cancelled', this._onDragCancelled.bind(this),
+ 'drag-end', this._onDragEnd.bind(this),
+ this);
}
this._otherIconIsHovering = false;
if (this._dragState === DragState.DRAGGING && this._dragCancellable)
this._cancelDrag(global.get_current_time());
- this.disconnectAll();
});
this._onEventId = null;
this._touchSequence = null;
dragActorMaxSize: WINDOW_DND_SIZE,
dragActorOpacity: DRAGGING_WINDOW_OPACITY,
});
- this._draggable.connect('drag-begin', this._onDragBegin.bind(this));
- this._draggable.connect('drag-cancelled', this._onDragCancelled.bind(this));
- this._draggable.connect('drag-end', this._onDragEnd.bind(this));
+ this._draggable.connectObject(
+ 'drag-begin', this._onDragBegin.bind(this),
+ 'drag-cancelled', this._onDragCancelled.bind(this),
+ 'drag-end', this._onDragEnd.bind(this),
+ this);
this.inDrag = false;
let clickAction = new Clutter.ClickAction();
dragActorMaxSize: Workspace.WINDOW_DND_SIZE,
dragActorOpacity: Workspace.DRAGGING_WINDOW_OPACITY,
});
- this._draggable.connect('drag-begin', this._onDragBegin.bind(this));
- this._draggable.connect('drag-cancelled', this._onDragCancelled.bind(this));
- this._draggable.connect('drag-end', this._onDragEnd.bind(this));
+ this._draggable.connectObject(
+ 'drag-begin', this._onDragBegin.bind(this),
+ 'drag-cancelled', this._onDragCancelled.bind(this),
+ 'drag-end', this._onDragEnd.bind(this),
+ this);
this.inDrag = false;
const clickAction = new Clutter.ClickAction();